package homework;

public class Day04Homework1 {
    public static void main(String[] args) {
        /*
        Scanner scan = new Scanner(System.in);
        System.out.println("请选择功能:1存款2取款3查询4退卡");
        int a = scan.nextInt();
        switch(a){
            case 1:
                System.out.println("存款");
                break;
            case 2:
                System.out.println("取款");
                break;
            case 3:
                System.out.println("查询");
                break;
            case 4:
                System.out.println("退卡");
                break;
            default:
                System.out.println("输入错误");
        }
         */
        /*
        int num2 = (int)(Math.random()*1000+1);
        System.out.println("作弊"+num2);

        Scanner scan = new Scanner(System.in);

        System.out.println("请输入一个整数");
        int num1 = scan.nextInt();

        while(num2!=num1){
            if(num1>num2){
                System.out.println("猜大了");
            }else{
                System.out.println("猜小了");
            }
            System.out.println("输入一个整数:");
            num1 = scan.nextInt();
        }
        System.out.println("猜对了");
        */
        /*
        int guess;
        int num = (int)(Math.random()*1000+1);
        System.out.println(num);
        Scanner scan = new Scanner(System.in);
        do{
            System.out.println("输入整数吧");
            guess = scan.nextInt();
            if(guess>num){
                System.out.println("大了");
            }else if(guess<num){
                System.out.println("小了");
            }else{
                System.out.println("对了");
            }
        }while(guess!=num);
        */
        for(int i=1;i<6;i++){
            System.out.println("行动是成功的阶梯");
        }
        for(int i=1;i<10;i++){
            System.out.println(i+"*9="+i*9);
        }
        for(int i=1;i<10;i+=2){
            System.out.println(i+"*9="+i*9);
        }
        for(int i=9;i>0;i--){
            System.out.println(i+"*9="+i*9);
        }
        int sum=0;
        for(int i=1;i<101;i++){
            sum +=i;
        }
        System.out.println("sum="+sum);
        for(int num=1;num<10;num++){
            if(num==4){
                break;
            }
            System.out.println(num+"*9="+num*9);
        }
        for(int num=1;num<10;num++){
            if(num%3==0){
                continue;
            }
            System.out.println(num+"*9="+num*9);
        }
    }
}
